package main

import "fmt"

func main() {
	sum := getSum(100)
	fmt.Println("sum=", sum)
}

func getSum(n int) int {
	if n == 0 {
		return 0
	}
	return n + getSum(n-1)
}
